import request from '@/utils/request'
export function getEmployeesSimple() {
  return request({
    url: '/sys/user/simple'
  })
}

// 获取员工列表
export function getEmployees(params) {
  return request({
    url: '/sys/user',
    params
  })
}

// 添加员工
export function addEmployees(data) {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}

// 删除员工
export function delEmployees(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'delete'

  })
}

// 批量导入员工
export function importEmployees(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data

  })
}

